*** Settings ***
Library           Selenium2Library
Resource          elements.robot

*** Test Cases ***
Case2
    Open Browser    ${url}    chrome
    Input Text    id=username_field    ${username}
    Input Text    id=password_field    ${password}
    Click Button    id=login_button
    Page Should Contain    ${loginSucceeded}
    Close Browser

Case3
    Open Browser    ${url}    chrome
    Input Text    id=username_field    ${username}
    Input Text    id=password_field    wrong
    Click Button    id=login_button
    Page Should Contain    Login failed
    Close Browser
